<template>
  <el-dialog
    :title="visible.title"
    :visible.sync="visible.roleVisible"
    width="30%"
    :before-close="handleClose">
    <span>这是一段信息</span>
    <span slot="footer" class="dialog-footer">
      <el-button @click="handleClose">取 消</el-button>
      <el-button type="primary" @click="save">确 定</el-button>
    </span>
  </el-dialog>
</template>

<script>
export default {
  props: {
    dialog: {
      type: Object,
      default: () => {}
    }
  },
  data() {
    return {
      visible: this.dialog
    }
  },
  methods: {
    handleClose() {
      this.$emit('handleClose')
    },
    save() {
      this.handleClose()
    }
  }
}
</script>

<style lang="scss" scoped>
:deep(.el-dialog){
  background: rgba(0,28,55,0.85);
}
:deep(.el-dialog__header){
  border-bottom: 1px solid rgba(120, 189, 255, 1);
  margin-right: 0px;
  margin-bottom:10px
}
:deep(.el-dialog__title){
  color: #41B0FF;
  font-size: 16px;
}

:deep(.el-dialog__headerbtn .el-dialog__close){
  color: rgba(70, 174, 255, 1);
}
</style>
